package com.my.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 上传文件
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-08
 */
@TableName("file")
public class File extends Model<File> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Long id;
    /**
     * 关联id
     */
	@TableField("relationId")
	private Long relationId;
    /**
     * 创建时间
     */
	@TableField("createTime")
	private Long createTime;
    /**
     * 创建文件的名字
     */
	@TableField("fileName")
	private String fileName;

	public long getAreaid() {
		return areaid;
	}

	public void setAreaid(long areaid) {
		this.areaid = areaid;
	}

	@TableField("areaid")
	private long areaid;


    /**
     * 文件URL
     */
	private String url;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRelationId() {
		return relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}


}
